Global Index
HTML5 JS API Index > Browser Tutorials & Specs

NavigatorContentUtils

Implemented by Navigator

This type groups properties and / or operations together for documentation purposes and does not have an explicit JavaScript representation.

Operations
DOMString
isContentHandlerRegistered(DOMString mimeType, DOMString url)
The isContentHandlerRegistered() method must return the handler state string that most closely describes the current state of the handler described by the two arguments to the method, where the first argument gives the MIME type and the second gives the string used to build the URL of the page that will handle the requests.
DOMString
isProtocolHandlerRegistered(DOMString scheme, DOMString url)
The isProtocolHandlerRegistered() method must return the handler state string that most closely describes the current state of the handler described by the two arguments to the method, where the first argument gives the scheme and the second gives the string used to build the URL of the page that will handle the requests.
void
registerContentHandler(DOMString mimeType, DOMString url, DOMString title)
The registerProtocolHandler() method allows Web sites to register themselves as possible handlers for particular schemes. For example, an online telephone messaging service could register itself as a handler of the sms: scheme, so that if the user clicks on such a link, he is given the opportunity to use that Web site.
void
registerProtocolHandler(DOMString scheme, DOMString url, DOMString title)
The registerProtocolHandler() method allows Web sites to register themselves as possible handlers for particular schemes. For example, an online telephone messaging service could register itself as a handler of the sms: scheme, so that if the user clicks on such a link, he is given the opportunity to use that Web site.
void
unregisterContentHandler(DOMString mimeType, DOMString url)
The unregisterContentHandler() method must unregister the handler described by the two arguments to the method, where the first argument gives the MIME type and the second gives the string used to build the URL of the page that will handle the requests.
void
unregisterProtocolHandler(DOMString scheme, DOMString url)
The unregisterProtocolHandler() method must unregister the handler described by the two arguments to the method, where the first argument gives the scheme and the second gives the string used to build the URL of the page that will handle the requests.